// 首页
import axios from '@/api/request/request'

// 列表
const productList = (option: any) => {
  return axios.get('/product/list', option)
}

// 列表
const productMyList = (option: any) => {
  return axios.get('/product/myList', option)
}

// 保存
const productSave = (option: any) => {
  return axios.post('/product/save', option)
}

// 删除
const productDelete = (option: any) => {
  return axios.get('/product/delete', option)
}

// 获取库存统计
const getSumInventory = (option: any) => {
  return axios.get('/product/getSumInventory', option)
}

export { productList, productMyList, productSave, productDelete, getSumInventory }
